<?php
@require("php_config_init.php");
@require("php_config_mysql.php");
$userid = $_GET["userid"];
$name = $_GET["name"];
$area = $_GET["area"];
$address = $_GET["address"];
$tel = $_GET["tel"];
//sql语句
$sql = "insert into address_info (userid,name,area,address,tel) values ('$userid','$name','$area','$address','$tel')";
mysql_query($sql);
$count = mysql_affected_rows();
if($count > 0){
    $obj["code"] = 1;
    $obj["msg"] = "成功";
}else{
    $obj["code"] = 0;
    $obj["msg"] = "失败";
}
echo json_encode($obj);
?>